<template>
  <block>
    <parkPayConfirmMm v-if="proMmFlag" :park-info="parkInfo" />
    <parkPayConfirmXgl v-else-if="proXglFlag" :park-info="parkInfo" />
  </block>
</template>
<script>
import website from '@/const/website'
import parkPayConfirmMm from './parkPayConfirmMm'
import parkPayConfirmXgl from './parkPayConfirmXgl'
export default {
  components: {
    parkPayConfirmMm,
    parkPayConfirmXgl
  },
  data() {
    return {
      proMmFlag: false,
      proXglFlag: false,
      parkInfo: {}
    }
  },
  onLoad(options) {
    const parkInfo = JSON.parse(options.parkInfo)
    parkInfo.payMoney = parkInfo.payable / 100
    console.info('确认费用信息:', parkInfo)
    this.parkInfo = parkInfo

    this.proMmFlag = website.projectType === 'mm'
    this.proXglFlag = website.projectType === 'xgl'
  }
}
</script>
